package cc.ucanuup.common.support.easyui.model;

import cc.ucanuup.common.support.easyui.inter.EasyuiQuery;

public class EuiGridModel implements EasyuiQuery {

	private Integer	page = 1;

	private Integer	rows = 10;

	private String[] sort ;

	private String[] order;

	public Integer getPage() {

		return page;
	}

	public void setPage(Integer page) {

		this.page = page;
	}

	public Integer getRows() {

		return rows;
	}

	public void setRows(Integer rows) {

		this.rows = rows;
	}

	@Override
	public Integer getPageNo() {

		return page>0 ? page-1:0;
	}

	@Override
	public Integer getPageSize() {

		return rows;
	}

	@Override
	public String[] getSortArr(){
		return sort;
	}

	@Override
	public String[] getOrders(){
		return order;
	}


	public String[] getSort() {

		return sort;
	}


	public void setSort(String[] sort) {

		this.sort = sort;
	}


	public String[] getOrder() {

		return order;
	}


	public void setOrder(String[] order) {

		this.order = order;
	}

}